package com.ai.service.made;

import com.ai.common.CommonResponse;
import com.ai.entity.function.FunctionBO;
import com.ai.entity.function.FunctionPO;
import com.ai.entity.function.FunctionPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Mr.Chen
 * @since 2020-06-18
 */
public interface FunctionService extends IService<FunctionPO> {



    CommonResponse oneById(FunctionPO functionPO);

    CommonResponse modifyInfo(FunctionPO functionPO);

    CommonResponse insert(FunctionPO functionPO);

    CommonResponse delete(FunctionPO functionPO);

    /**
     * 功能分页
     * @param page
     * @return
     */
    CommonResponse selectByPage(FunctionPage page);

    CommonResponse selectByCamera(FunctionBO functionBO);

    String getNameByCode(String nickname);

    CommonResponse selectAll();

    FunctionPO getFunByType(Integer functionType);


    /**
     * 删除算法
     * @param functionId
     * @return
     */
    CommonResponse delAlarm(String functionId);


    /**
     * 修改功能详情信息------ 用于修改睡岗脱岗的roi识别时间
     * @param functionPO
     * @return
     */
    CommonResponse editAlarm(FunctionPO functionPO);

    /**
     * 获取功能列表
     * @return
     */
    CommonResponse getFunctionList();

    /**
     * 获取绑定当前功能的所有摄像头id
     * @param functionType
     * @return
     */
    List<String> getRelationCameraId(String functionType);
}
